package org.hzero.business.report.enums;

import org.hzero.business.report.dto.KnifeReportColumnOrder;

/**
 * 字段排序枚举
 *
 * @author tianhao.luo@hand-china.com
 */
public enum ColumnOrderEnum {

    /**
     * 测试字段 order越小越靠前
     */
    TEST_HEADER(new KnifeReportColumnOrder[]{
            new KnifeReportColumnOrder("orderNum", 100),
            new KnifeReportColumnOrder("orderStatus", 200)
    }),
    TEST_LINE(new KnifeReportColumnOrder[]{
            new KnifeReportColumnOrder("orderNum", 200),
            new KnifeReportColumnOrder("createdBy", 100)
    }),
    ;

    private final KnifeReportColumnOrder[] orderColumns;

    ColumnOrderEnum(KnifeReportColumnOrder[] orderColumns) {
        this.orderColumns = orderColumns;
    }

    public KnifeReportColumnOrder[] getOrderColumns() {
        return orderColumns;
    }
}
